package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.system.DictBO;
import com.lwc.cfdns.pojo.dto.system.DictDTO;
import com.lwc.cfdns.pojo.entity.SystemDict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.DictVO;

import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_dict(字典类型表)】的数据库操作Service
 * @createDate 2023-05-28 20:42:57
 */
public interface SystemDictService extends IService<SystemDict> {

    /**
     * 创建
     *
     * @param dictDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/28 21:01
     */
    Map<String, Object> create(DictDTO dictDTO);

    /**
     * 修改
     *
     * @param dictDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/28 21:01
     */
    Map<String, Object> update(DictDTO dictDTO);

    /**
     * 详情
     *
     * @param id
     * @return DictVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/28 21:05
     */
    DictVO view(Long id);

    /**
     * 删除
     *
     * @param ids
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/28 21:08
     */
    Map<String, Object> delete(String ids);

    /**
     * 列表
     *
     * @param dictBO
     * @return IPage<SystemDict>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/28 21:20
     */
    IPage<SystemDict> lists(DictBO dictBO);

    /**
     * 刷新指定缓存
     *
     * @param marks
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/29 15:48:33
     */
    Map<String, Object> refreshCache(String marks);

    /**
     * 刷新缓存
     *
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/29 15:48:33
     */
    Map<String, Object> refreshCache();
}
